package com.example.conf.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 定金预售活动表
 * </p>
 *
 * @author wpdcn
 * @since 2020-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_advance_deposit_campaign")
@ApiModel(value="ShopAdvanceDepositCampaignEntity对象", description="定金预售活动表")
public class ShopAdvanceDepositCampaignEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    @Column(comment = "定金支付开始时间")
    @ApiModelProperty(value = "定金支付开始时间")
    private LocalDateTime depositPayStartTime;

    @Column(comment = "定金支付结束时间")
    @ApiModelProperty(value = "定金支付结束时间")
    private LocalDateTime depositPayEndTime;

    @Column(comment = "尾款支付开始时间")
    @ApiModelProperty(value = "尾款支付开始时间")
    private LocalDateTime balancePayStartTime;

    @Column(comment = "尾款支付结束时间")
    @ApiModelProperty(value = "尾款支付结束时间")
    private LocalDateTime balancePayEndTime;

    @Column(comment = "定金金额")
    @ApiModelProperty(value = "定金金额")
    private Double depositValue;

    @Column(comment = "定金实际抵扣金额")
    @ApiModelProperty(value = "定金实际抵扣金额")
    private Double depositDeduction;

    @Column(comment = "活动描述")
    @ApiModelProperty(value = "活动描述")
    private String remarks;

    @Column(comment = "活动状态：1-未开始；2-进行中；3-已结束")
    @ApiModelProperty(value = "活动状态：1-未开始；2-进行中；3-已结束")
    private String status;

    @Column(comment = "参与的商品id")
    @ApiModelProperty(value = "参与的商品id")
    private Long goodId;

    @Column(comment = "商品预售价格")
    @ApiModelProperty(value = "商品预售价格")
    private Double advancePrice;

    @Column(comment = "创建人")
    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @Column(comment = "创建时间")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @Column(comment = "修改人")
    @ApiModelProperty(value = "修改人")
    private Long updateBy;

    @Column(comment = "修改时间")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;





}
